const http = require('http')
const fs = require('fs')

http.createServer((req, res) => {
    // res.end('DDDDDAMN!')
    if(req.url === '/index'){
       const content = fs.readFileSync('./index.html',{encoding: 'utf8'});
    //    console.log(content);
    res.end(content)
    }
}).listen(3000)